<?php
include_once("../../powerman/config/config.php");
include_once("../../powerman/lib/ajaxfunctions.php");
include_once("../../powerman/constants/constants.php");
include_once("../../powerman/classes/DBManager.php");

require_once("../../powerman/log4php/Logger.php");
require_once("../../powerman/log4php/LoggerLevel.php");
Logger::configure("../../powerman/log4php.properties");

$objDBM = new DBManager();
$objDBM->dbConnect( SERVER_NAME, DB_USER_NAME, DB_PASSWORD, DB_NAME );

?>
var states = <?php echo json_encode(getStates(),JSON_HEX_TAG|JSON_HEX_APOS|JSON_HEX_QUOT|JSON_HEX_AMP); ?>;